define(['css!src/app/header/css/header_menu.css', 'css!src/app/login/css/login.css', 'css!src/hr/css/hr-assign.css'], function () {
    function initialize() {
        var model = {
            currentMenu: ko.observable({
                menuUrl: ''
            }),
            afterHeaderRender: afterHeaderRender,
            afterRender: afterRender
        };

        //TODO: 为了兼容
        ko.dataFor($('body')[0]).currentMenu.subscribe(function (newValue) {
            model.currentMenu(newValue);
        });

        return model;
    }

    /**
     * 菜单页面加载后方法
     */
    function afterHeaderRender() {
        console.log('afterHeaderRender');
    }

    /**
     * 下方页面加载后方法
     */
    function afterRender() {
        console.log('afterRender');
    }

    return {
        initialize: initialize,
        afterHeaderRender: afterHeaderRender,
        afterRender: afterRender
    }
});